package demo3;

import demo1.BookList;
import demo2.IOoperation;

public abstract class User {
    protected String name;
    protected IOoperation[] iOoperations;

    public User(String name) {
        this.name = name;
    }
    public abstract  int menu();
    public void doIOperation(int choice, BookList bookList){
        iOoperations[choice].work(bookList);
    }
}
